home *** CD-ROM | disk | FTP | other *** search
/ Programming Sound Cards / Programming Sound Cards.iso / sound_89 / vocform2.doc < prev    next >
Text File  |  1995-01-01  |  3KB  |  62 lines

  1. I just got the developer's kit for the SoundBlaster so I can fill
  2. in some holes in the VOC File Format.   - John
  3.  
  4. -----------------------------------------------------------------
  5.  
  6. Creative Voice File (VOC) Format:
  7.  
  8.     HEADER (bytes 00-19)
  9.     Series of DATA BLOCKS (bytes 1A+) [Must end w/ Terminator Block]
  10.  
  11. -----------------------------------------------------------------
  12.  
  13. HEADER:
  14. =======
  15.      byte #     Description
  16.      ------     ------------------------------------------
  17.      00-12      Creative Voice File
  18.      13-15      1A 1A 00  (eof to abort printing of file)
  19.      16-17      Version number (minor,major) (VOC-HDR puts 0A 01)
  20.      18-19      2's Comp of Ver. # + 1234h (VOC-HDR puts 29 11)
  21.  
  22. -----------------------------------------------------------------
  23.  
  24. DATA BLOCK:
  25. ===========
  26.  
  27.    Data Block:  TYPE(1-byte), SIZE(3-bytes), INFO(0+ bytes)
  28.    NOTE: Terminator Block is an exception -- it has only the TYPE byte.
  29.  
  30.       TYPE   Description     Size (3-byte int)   Info
  31.       ----   -----------     -----------------   -----------------------
  32.       00     Terminator      (NONE)              (NONE)
  33.       01     Sound data      2+length of data    *
  34.       02     Sound continue  length of data      Voice Data
  35.       03     Silence         3                   **
  36.       04     Marker          2                   Marker# (2 bytes)
  37.       05     ASCII           length of string    null terminated string
  38.       06     Repeat          2                   Count# (2 bytes)
  39.       07     End repeat      0                   (NONE)
  40.  
  41.       *Sound Info Format:       **Silence Info Format:
  42.        ---------------------      ----------------------------
  43.        00   Sample Rate           00-01  Length of silence - 1
  44.        01   Compression Type      02     Sample Rate
  45.        02+  Voice Data
  46.  
  47.  
  48.   Marker#           -- Driver keeps the most recent marker in a status byte
  49.   Count#            -- Number of repetitions + 1
  50.                          Count# may be 1 to FFFE for 0 - FFFD repetitions
  51.                          or FFFF for endless repetitions
  52.   Sample Rate       -- SR byte = 256-(1000000/sample_rate)
  53.   Length of silence -- in units of sampling cycle
  54.   Compression Type  -- of voice data
  55.                          8-bits    = 0
  56.                          4-bits    = 1
  57.                          2.6-bits  = 2
  58.                          2-bits    = 3
  59.                          Multi DAC = 3+(# of channels) [interesting--
  60.                                        this isn't in the developer's manual]
  61.  
  62.